<?php

$printer = "\\CASHIER01\Printer2";

$var = "
        Room Sales Summary

Room 207\t\tCheck-in: 2009-10-19 03:01:43
Rate3 HRS 	Exp Checkout: 0000-00-00 00:00:00
Shift	0 	 	 
Room Sales:	 
Room Charges
 	Room Charge	645.00	 
 	Room Charge	345.00	 
 	Sub Total:	990.00
Deposit/Payments
 	Sub Total:	0.00
\n\n\n\r\r\r\r
";

$f = fopen("reports/soa.txt","w");
fwrite($f, $var);

shell_exec('c:\pstools\psexec c:\xampp\htdocs\fds\ajax\p.bat soa.txt ');

?>
